package main.Q2701_2800;

import java.util.Arrays;

public class Q2731_2740 {
    public static void main(String[] args) {
        System.out.println("Question2731：");
        System.out.println("Question2732：");
        System.out.println("Question2733：");
        System.out.println("Question2734：");
        System.out.println("Question2735：");
        System.out.println("Question2736：");
        System.out.println("Question2737：");
        System.out.println("Question2738：");
        System.out.println("Question2739：");
        System.out.println("Question2740：找出分区值");
    }
}

class Question2740 {
    public int findValueOfPartition(int[] nums) {
        Arrays.sort(nums);
        int minDiff = nums[1] - nums[0];
        for (int i = 2; i < nums.length; i++) {
            minDiff = Math.min(minDiff, nums[i] - nums[i - 1]);
        }
        return minDiff;
    }
}
